<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>login</title>
</h:head>
<h:body>


	<p:layout fullPage="true">

		<p:layoutUnit position="north">
			<div align="center">
				<h:graphicImage library="images" name="logo.png" />
			</div>
		</p:layoutUnit>

		<p:layoutUnit position="center">

			<div align="center">
				<h:form id="loginForm">
					<p:growl id="msg" showDetail="true" life="3000" />
					<p:panel header="Login" style="width: 360px;">

						<h:panelGrid id="loginPanel" columns="2">

							<h:outputText value="Username" />
							<p:inputText id="username" value="#{loginBean.usuario.username}"></p:inputText>

							<p:spacer />
							<p:spacer />

							<h:outputText value="Password" />
							<p:password id="password" value="#{loginBean.usuario.password}"	feedback="false"></p:password>

							<p:spacer />
							<p:spacer />

							<p:commandButton action="#{loginBean.logar}" value="Login" />

						</h:panelGrid>

					</p:panel>

				</h:form>
			</div>

		</p:layoutUnit>
	</p:layout>


</h:body>

</html>